<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Payment Voucher</title>

        <script type="text/javascript" language="JavaScript1.2" src="../js/stm31.js"></script>
        <style type="text/css">
            <!--
            @import url("../csss/erpstyles.css");
            body {
                background-color: #FFFFCC;
            }
            -->
        </style>
        <link href="csss/erpstyles.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <table width="913" border="0" cellspacing="0" cellpadding="0" align="center">

            <tr>
                <td width="913" bgcolor="#FFFFCC"><p >&nbsp;</p>

                    <%@ page import="java.io.*"%>
                    <%@ page import="java.util.*"%>
                    <%@ page import="java.sql.*"%>
                    <%@ page import="accounttrans.*"%>
                    <%@ page import="achead.*"%>
                    </p>
                    <%
                         ArrayList al=(ArrayList)request.getAttribute("AL");
                             System.out.println("al at payments LIST jsp :%" + al);
                             if(al!=null)
                              {
                      Iterator it=al.iterator();
                    %>
                    <form action="PaymentsEdit" method="get" name="PaymentsList">
                        <table width="913" border="0" cellspacing="0" cellpadding="0">
                            <tr bgcolor="#FFFFCC">
                                <td height="40" colspan="7"  background="images/erpimg.jpg" class="username"  ><div align="center" class="login">Payments View</div></td>
                            </tr>
                            <tr>
                                <td width="37">&nbsp;</td>
                                <td width="146">&nbsp;</td>
                                <td width="159">&nbsp;</td>
                                <td width="173">&nbsp;</td>

                                <td width="97">&nbsp;</td>
                                <td width="148">&nbsp;</td>
                                <td width="153">&nbsp;</td>
                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname"><div align="left"></div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Payment No. </div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Payment Type </div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Account Head </div></td>

                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Amount	</div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Payment Date</div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Narration</div></td>
                            </tr>
                            <tr>
                                <% while(it.hasNext())
                                               {
                                                       PaymentVoucherBean ib=(PaymentVoucherBean)it.next();
		
                                       String pno			=	ib.getPayment_no();
                                       String ptype			=	ib.getPayment_type();
                               String achead					=	ib.getAccount_head();
                               String amount					=	ib.getAmount();
                               String narration				=	ib.getNarration();
                               String pdate					=	ib.getPayment_date();


                       //String[] ind=pdate.split("-");
                       //String indate  =  ind[2]+"-"+ind[1]+"-"+ind[0];
                                %>
                                <td class="tabledata" ></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=pno%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=ptype%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=achead%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=amount%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=pdate%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=narration%></div></td>
                            </tr>
                            <tr>
                                <td class="tabledata" >&nbsp;</td>
                            </tr>
                            <%}}%>
                            <tr>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>

                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                            </tr>
                        </table>
                    </form>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p></td>
            </tr>
        </table>

    </body>
</html>
